package com.watson.spring.all.security.service;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @author watson
 * @date 2021/5/26 19:47
 * @Description: TODO
 **/
@SpringBootApplication
//@EnableGlobalMethodSecurity(securedEnabled = true)
@EnableGlobalMethodSecurity(prePostEnabled = true)
@MapperScan("com.watson.spring.all.security")
public class DemoSecurityApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoSecurityApplication.class, args);
    }
}
